package org.tong.ctr;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author
 * @date 2022-09-04 18:11
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @GetMapping("/getUser")
    public Object getUser(Authentication authentication) {
        return authentication;
    }
}
